package ru.zombator.taskman.core.dbclient.impl;

import java.util.UUID;

import ru.zombator.taskman.core.domain.IPerson;

/**
 * Участник проекта
 * 
 * @see IPerson
 * @author nvamelichev
 * 
 */
public abstract class Person implements IPerson {
	private static final long serialVersionUID = 1L;
	
	private UUID id;
	private String name;
	private String ipAddress;

	public Person(UUID id, String name, String ipAddress) {
		this.id = id;
		this.name = name;
		this.ipAddress = ipAddress;
	}

	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public void setName(String newName) {
		this.name = newName;
	}

	@Override
	public UUID getId() {
		return this.id;
	}

	@Override
	public String getIpAddress() {
		return this.ipAddress;
	}

	@Override
	public void setIpAddress(String address) {
		this.ipAddress = address;
	}
	
	@Override
	public abstract Person clone();
}
